<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="cache-control" content="no-cache"/>
    <meta http-equiv="expires" content="-1"/>
    <meta name="description" content="{$appConfigs[member_title]}">
	<title>{$title}{if $moduletitle}{C 'title_sperator' '-'}{$moduletitle}{/if}</title>
	<meta name="keyword" value="{$keyword}" >
	<meta name="description" value="{$description}" >
    {run $pageName = "login"}
    {include member.inc.csslink}
</head>
<body>
{include member.inc.header_login}
<main class="login_main clearfix" style="background: url({$adBanner.content});">
    <div class="max-w">
        <a class="hotClick fl" href="{$adBanner.link}" target="{if $adBanner[target]==1}_blank{/if}">了解详情</a>
    <section class="panel_form on">
        <div class="header"><h1>新用户注册</h1></div>

        <?php $enabled_register=C('enabled_register');?>

        {if $enabled_register=='off'}
           <div style="text-align: center;padding:100px;height:114px;"><span>注册功能已被禁用</span></div>
        {else}
		<form class="form" method="POST" action="{url /member/reg/index}">
            <input type="password" class="hidePwd"/>
            <ul class="errorWrap">
                <li><label class="error">{$wrong}</label></li>
            </ul>
            <div class="row">
                <i class="user"></i><input class="form-control" type="text" name="username" placeholder="请输入手机号" id="mobile" data-name="手机号"  autocomplete="off" value="{$username}"/>
            </div>
            <div class="row">
                <i class="pwd"></i><input class="form-control" type="password" name="pwd" placeholder="请输入6-20位的密码"  autocomplete="off" />
            </div>
            <div class="row code">
                <i class="vcode"></i><input class="form-control" type="text" name="vcode" placeholder="请输入验证码" autocomplete="off"/>
                <span class="fr tr">
                    <button class="getCode_btn" data-act="getSMS" disabled >获取验证码</button>
                </span>
            </div>
            <div class="tip checkbox-wrap">
                <input type="checkbox" id="check1" name="agree"  value="1"/>
                <label for="check1" class="check_box"></label>
                我同意
                <a href="{url /information/single/protocol}" class="link2" target="_blank">《开户协议》</a>
            </div>
            <a href="javascript:;" class="sub_btn">注册</a>
            <div class="to_login clearfix">
				<p class="fr c-info"> 已有账号? <a href="{url /member/login/index}" class="link2">直接登录</a></p>
            </div>
        </form>
        {/if}
    </section>
    </div>
</main>

{include member.inc.footer}
{include member.inc.script}

<script>
   seajs.use('reg',function(reg){
	   //reg.wrong="{$wrong}";//用于后端返回注册错误
       reg.reg();
   });
</script>
{include member.inc.foot_hook}
</body>
</html>
